package com.shugl.demo.entity;

import com.shugl.demo.config.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author admin
 */
@Data
@ApiModel("module模块表")
@Table(name = "sys_module")
public class SysModule extends BaseEntity {


    /**
     * 父级ID
     */
    @NotNull
    @ApiModelProperty("父级ID")
    private Long pid;

    /**
     * 图标
     */
    @NotNull
    @ApiModelProperty("图标")
    private String icon;

    /**
     * 模块名称
     */
    @Column(name = "module_name")
    @ApiModelProperty("模块名称")
    private String moduleName;

    /**
     * 请求路径
     */
    @Column(name = "request_url")
    @ApiModelProperty("请求路径")
    private String requestUrl;

    /**
     * 描述
     */
    @ApiModelProperty("描述")
    private String description;

    /**
     * 序号
     */
    @ApiModelProperty("序号")
    private Integer number;

    /**
     * 状态
     */
    @ApiModelProperty("状态")
    private Integer state;


}